package com.itheima.test5;

public class Test01 {

    public static void main(String[] args) {
        goSwimming(new Swimming() {
            @Override
            public void swim() {
                System.out.println("铁汁我们去看腿吧");
            }


        });
        goSwimming(()->{
            System.out.println("走, 看妹妹去");
        });
    }

    public static void goSwimming(Swimming swimming){
        swimming.swim();
    }

    public static void useFu(Fu  fu){
        fu.show();
    }



}
interface  Swimming{
    void swim();
   /* void show();*/
}

class Fu{
    public void show(){

    }
}